package com.panshi.api;

import com.panshi.vo.R;
import com.panshi.vo.SysFeedback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Component
@FeignClient(value = "hasbei-sys.com",path = "/api/sys/feedback")
public interface SysFeedbackApi {

    @GetMapping("/list")
    List<SysFeedback> listSysFeedback();

    @GetMapping("/{id}")
    SysFeedback getSysFeedback(@PathVariable("id")Integer id);

    @PostMapping
    R addSysFeedback(@RequestBody SysFeedback sysFeedback);

    @PutMapping
    R editSysFeedback(@RequestBody SysFeedback sysFeedback);

    @DeleteMapping
    R delSysFeedback(@PathVariable("id")Integer id);
}
